let {SyncHook} = require('./tapable');
let hook = new SyncHook(['name']);
hook.tap({name:'tap1'},(name)=>{
    console.log(1,name);
});
hook.tap({name:'tap3'},(name)=>{
    console.log(3,name);
});
hook.tap({name:'tap5'},(name)=>{
    console.log(5,name);
});
//不知道tap3 tap5 它的stage是多少，也有可能，tap3 tap5在注册的时候没有指定stage
//但是我就想插入到它们的前面
hook.tap({name:'tap2',before:['tap3','tap5']},(name)=>{
    console.log(2,name);
});
hook.call('zhufeng');